package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.ForeclosedHouseBookingorderMapper;
import com.ruoyi.yipaiju.domain.ForeclosedHouseBookingorder;
import com.ruoyi.yipaiju.service.IForeclosedHouseBookingorderService;

/**
 * fo_foreclosed_house_bookingorderService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class ForeclosedHouseBookingorderServiceImpl implements IForeclosedHouseBookingorderService 
{
    @Autowired
    private ForeclosedHouseBookingorderMapper foreclosedHouseBookingorderMapper;

    /**
     * 查询fo_foreclosed_house_bookingorder
     * 
     * @param id fo_foreclosed_house_bookingorder主键
     * @return fo_foreclosed_house_bookingorder
     */
    @Override
    public ForeclosedHouseBookingorder selectForeclosedHouseBookingorderById(Long id)
    {
        return foreclosedHouseBookingorderMapper.selectForeclosedHouseBookingorderById(id);
    }

    /**
     * 查询fo_foreclosed_house_bookingorder列表
     * 
     * @param foreclosedHouseBookingorder fo_foreclosed_house_bookingorder
     * @return fo_foreclosed_house_bookingorder
     */
    @Override
    public List<ForeclosedHouseBookingorder> selectForeclosedHouseBookingorderList(ForeclosedHouseBookingorder foreclosedHouseBookingorder)
    {
        return foreclosedHouseBookingorderMapper.selectForeclosedHouseBookingorderList(foreclosedHouseBookingorder);
    }

    @Override
    public List<ForeclosedHouseBookingorder> selectForeclosedHouseBookingorderList1(ForeclosedHouseBookingorder foreclosedHouseBookingorder)
    {
        return foreclosedHouseBookingorderMapper.selectForeclosedHouseBookingorderList1(foreclosedHouseBookingorder);
    }

    /**
     * 根据业务主键查询一条记录：fo_foreclosed_house_bookingorder
     *
     * @param foreclosedHouseBookingorder fo_foreclosed_house_bookingorder
     * @return fo_foreclosed_house_bookingorder
     */
    @Override
    public ForeclosedHouseBookingorder selectOneForeclosedHouseBookingorder(ForeclosedHouseBookingorder foreclosedHouseBookingorder)
    {
        return foreclosedHouseBookingorderMapper.selectOneForeclosedHouseBookingorder(foreclosedHouseBookingorder);
    }

    /**
     * 新增fo_foreclosed_house_bookingorder
     * 
     * @param foreclosedHouseBookingorder fo_foreclosed_house_bookingorder
     * @return 结果
     */
    @Override
    public int insertForeclosedHouseBookingorder(ForeclosedHouseBookingorder foreclosedHouseBookingorder)
    {
        foreclosedHouseBookingorder.setCreateTime(DateUtils.getNowDate());
        return foreclosedHouseBookingorderMapper.insertForeclosedHouseBookingorder(foreclosedHouseBookingorder);
    }

    /**
     * 修改fo_foreclosed_house_bookingorder
     * 
     * @param foreclosedHouseBookingorder fo_foreclosed_house_bookingorder
     * @return 结果
     */
    @Override
    public int updateForeclosedHouseBookingorder(ForeclosedHouseBookingorder foreclosedHouseBookingorder)
    {
        foreclosedHouseBookingorder.setUpdateTime(DateUtils.getNowDate());
        return foreclosedHouseBookingorderMapper.updateForeclosedHouseBookingorder(foreclosedHouseBookingorder);
    }

    @Override
    public int updateForeclosedHouseBookingorderCondition(ForeclosedHouseBookingorder foreclosedHouseBookingorder, ForeclosedHouseBookingorder foreclosedHouseBookingorderCondition)
    {
                foreclosedHouseBookingorder.setUpdateTime(DateUtils.getNowDate());
        return foreclosedHouseBookingorderMapper.updateForeclosedHouseBookingorderCondition(foreclosedHouseBookingorder, foreclosedHouseBookingorderCondition);
    }

    /**
     * 批量删除fo_foreclosed_house_bookingorder
     * 
     * @param ids 需要删除的fo_foreclosed_house_bookingorder主键
     * @return 结果
     */
    @Override
    public int deleteForeclosedHouseBookingorderByIds(Long[] ids)
    {
        return foreclosedHouseBookingorderMapper.deleteForeclosedHouseBookingorderByIds(ids);
    }

    /**
     * 删除fo_foreclosed_house_bookingorder信息
     * 
     * @param id fo_foreclosed_house_bookingorder主键
     * @return 结果
     */
    @Override
    public int deleteForeclosedHouseBookingorderById(Long id)
    {
        return foreclosedHouseBookingorderMapper.deleteForeclosedHouseBookingorderById(id);
    }

    /**
     * 条件删除fo_foreclosed_house_bookingorder
     *
     * @param foreclosedHouseBookingorder fo_foreclosed_house_bookingorder
     * @return 结果
     */
    @Override
    public int deleteForeclosedHouseBookingorderByCondition(ForeclosedHouseBookingorder foreclosedHouseBookingorder)
    {
        return foreclosedHouseBookingorderMapper.deleteForeclosedHouseBookingorderByCondition(foreclosedHouseBookingorder);
    }

}
